<template>
	<view class="pageItem">
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-gengduo-copy" @tap="backPage"></view>
			<view class="text">查看物流</view>
		</view>
		<view class="clear_box"></view>
		
		<view class="card status">
			<image class="goods_img" src="../../static/img02/goods.png"></image>
			<view class="s_txt">运输中/已签收</view>
		</view>
		<view class="card logistics">
			<view class="l_row">
				<view class="iconfont icon is_status">收</view>
				<view class="l_txt">【收货地址】安徽省图图市包图区 包图街道  包图车重点站对面    的包图平价店</view>
			</view>
			<view class="l_row">
				<view class="iconfont icon is_status">&#xe89f;</view>
				<view class="l_txt is_this"><label class="l_status is_this">运输中</label><label class="time">05-09 11:47</label><br>【xx市】快件离开图图市中转部已发往包图</view>
			</view>
			<block v-for="(item,index) in 4">
				<view class="l_row">
					<view class="iconfont icon"><view class="point"></view></view>
					<view class="l_txt"><label class="time">05-09 11:47</label><br>中转的信息，如：快件已到达图图市中转部</view>
				</view>
			</block>
			<view class="l_row">
				<view class="iconfont icon has_border">&#xe6dc;</view>
				<view class="l_txt"><label class="l_status">已揽件</label><label class="time">05-09 11:47</label><br>【xx市】包子市的佰斯特【<label class="phone">12345678910</label>】已揽收</view>
			</view>
			<view class="l_row">
				<view class="iconfont icon has_border">&#xe6cb;</view>
				<view class="l_txt"><label class="l_status">已出库</label><label class="time">05-09 11:47</label><br>您的包裹已出库</view>
			</view>
			<view class="l_row">
				<view class="iconfont icon has_border">&#xe61f;</view>
				<view class="l_txt"><label class="l_status">已发货</label><label class="time">05-09 11:47</label><br>卖家发货</view>
			</view>
			<view class="l_row">
				<view class="iconfont icon has_border">&#xe60e;</view>
				<view class="l_txt"><label class="l_status">已下单</label><label class="time">05-09 11:47</label><br>您的订单待配货</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			backPage() {
				uni.navigateBack({});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},		
		}
	}
</script>
<style>
page{
	background: #F6F8FA;
}
.pageItem{
	width: 100%;
	box-sizing: border-box;
}
.pageItem *{
	box-sizing: border-box;
}
</style>
<style lang="scss">
.pageItem{
	padding: 4vw 4% 0;
}
.card:not(:first-of-type){
	margin-top: 25rpx;
}
.card{
	width: 100%;
	padding: 40rpx 30rpx;
	background: #ffffff;
	border-radius: 25rpx;
}
.status{
	width: 100%;
	display: flex;
	align-items: center;
	.goods_img{
		width: 13vw;
		height: 13vw;
		border-radius: 10rpx;
	}
	.s_txt{
		flex: 1;
		padding-left: 25rpx;
		font-size: 40rpx;
		color: #232426;
		font-weight: bold;
	}
}
.logistics{
	width: 100%;
	.l_row:not(:last-of-type){
		padding-bottom: 6vw;
	}
	.l_row:not(:last-of-type)::after{
		content: '';
		position: absolute;
		height: calc(100% - 6vw - 20rpx);
		width: 1rpx;
		left: 3vw;
		top: calc(6vw + 10rpx);
		background: #F0F0F0;
		z-index: 1;
	}
	.l_row{
		width: 100%;
		display: flex;
		align-items: flex-start;
		position: relative;
		.icon{
			width: 6vw;
			height: 6vw;
			border-radius: 50%;
			font-size: 3.5vw;
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;
			z-index: 3;
			background: #ffffff;
			.point{
				width: 2vw;
				height: 2vw;
				border-radius: 50%;
				background: #DDDDDD;
			}
		}
		.is_status{
			background: #0DA4AD;
			color: #ffffff;
		}
		.has_border{
			border: 1rpx solid #DDDDDD;
			color: #DDDDDD;
		}
		.l_txt{
			flex: 1;
			padding-left: 25rpx;
			color: #868686;
			font-size: 24rpx;
			line-height: 38rpx;
			.l_status{
				font-size: 26rpx;
			}
			.time{
				font-size: 24rpx;
				padding-left: 20rpx;
			}
			.phone{
				color: #0DA4AD;
			}
		}
		.is_this{
			color: #333333 !important;
			font-weight: bold;
		}
	}
}
</style>
